package com.hy.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@TableName("patient_evaluation")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Patienevaluation implements Serializable {
    @TableId("id")
    private Integer id;
    @TableField("patient_id")
    private Integer patientId;
    @TableField("mobile_number")
    private String mobileNumber;
    private Doctors doctors;
    private PatientInfo patientInfo;
    @TableField("rating")
    private Double rating;
    @TableField("evaluation_content")
    private String evaluationContent;
    @TableField("evaluation_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date evaluationTime;
    @TableField("doctor_id")
    private Integer doctorId;

}
